// PlusplusOverride.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include  <iostream>
using namespace std;

class Counter
{
private:
	unsigned int v;

public:
	Counter(){v = 0;};
	Counter(int s){v = s;};

	void print(){cout<<"V = "<<v<<endl;};

	Counter operator ++();
	Counter operator ++(int);
}
;
Counter Counter::operator ++()
{
	v +=3;
	return *this;
}
Counter Counter::operator ++(int)
{
	v += 5;;
	return *this;
}


int _tmain(int argc, _TCHAR* argv[])
{
	Counter c;

	for(int i = 0; i < 8; i++)
	{
		c++;
		c.print();
	}

	for(int i = 0; i < 8; i++)
	{
		++c;
		c.print();
	}

	getchar();


	return 0;
}

